<p>It's great that you want to become part of the Tandem Delft project!
Complete your profile below to finish your registration. You can always 
update it later.</p>

<?php 
require_once 'actions/finish_signup.cls.php';
require_once 'views/costum/UserSettingsForms.cls.php';
require_once '3rd_party/recaptcha/recaptchalib.php';

// We will link to this action
$_action = new FinishSignupAction();
$form = $_action->get_form_link();
$helper = new UserSettingsForms($form, $view, $signup=true);

echo $form->start();
	$helper->echo_profile_form();
	$helper->echo_criteria_form();
	
	echo '<div class="form-layout">';
		$password = $form->generate(new UnchallengedPasswordComponent($claim_password=_UserSettingsAction::INPUT_PASSWORD));
		echo $password->label();
		$confirm = $form->generate(new ConfirmPasswordField($password));
		echo $confirm->label('Confirm password');
		echo "<div style='clear:both'></div>";
	echo '</div>';
	
	echo '<div class="form-layout">';
	echo '
		<p>
			Once you have an account, you can send messages to other users. To prevent spambots
			bothering you, please complete the recaptcha below.
		</p>
	';
	echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, $view->recaptcha_error);
	$form->mark_bound(FinishSignupAction::INPUT_CAPTCHA_CHALLENGE);
	$form->mark_bound(FinishSignupAction::INPUT_CAPTCHA_RESPONSE);
	echo '</div>';
			
	echo $form->generate(new HiddenField(FinishSignupAction::INPUT_SECRET, $view->secret));
	echo $form->generate_submit("Save and show my match results!");
echo $form->end();

?>